//
//  ApplyViewController.m
//  YongChuanTradingArea
//
//  Created by Vivian on 2017/9/28.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import "ApplyViewController.h"
#import "ApplyMemberShopViewController.h"
#import "ApplyIndividualViewController.h"
#import "ApplyResultViewController.h"
@interface ApplyViewController ()

@end

@implementation ApplyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"注册申请";
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)applyAction:(UIButton *)sender {
    NSInteger type = sender.tag - 100;
    if (type == 1) {
        //member
        ApplyMemberShopViewController * vc = [[ApplyMemberShopViewController alloc]init];
        vc.isMember = YES;
        [self.navigationController pushViewController:vc animated:YES];
    }
    if (type == 2) {
        //individual
        ApplyIndividualViewController * vc = [[ApplyIndividualViewController alloc]init];
        [self.navigationController pushViewController:vc animated:YES];
    }
    if (type == 3) {
        //partener
        ApplyMemberShopViewController * vc = [[ApplyMemberShopViewController alloc]init];
        vc.isMember = NO;
        [self.navigationController pushViewController:vc animated:YES];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
